Optimal. Leaf size=121 \[ \frac {\sqrt {a+b} \cot (e+f x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{f}-\frac {\cot (e+f x) \sqrt {a+b \sec (e+f x)}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 121, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {3960, 3917}
\begin {gather*} \frac {\sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{f}-\frac {\cot (e+f x) \sqrt {a+b \sec (e+f x)}}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3917
Rule 3960
Rubi steps
\begin {align*} \int \csc ^2(e+f x) \sqrt {a+b \sec (e+f x)} \, dx &=-\frac {\cot (e+f x) \sqrt {a+b \sec (e+f x)}}{f}+\frac {1}{2} b \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx\\ &=\frac {\sqrt {a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{f}-\frac {\cot (e+f x) \sqrt {a+b \sec (e+f x)}}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.90, size = 120, normalized size = 0.99 \begin {gather*} \frac {-\left ((b+a \cos (e+f x)) \csc (e+f x) \sqrt {\frac {1}{1+\sec (e+f x)}}\right )+b F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {\frac {a+b \sec (e+f x)}{(a+b) (1+\sec (e+f x))}}}{f \sqrt {\frac {1}{1+\sec (e+f x)}} \sqrt {a+b \sec (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(263\) vs.
\(2(110)=220\).
time = 0.23, size = 264, normalized size = 2.18
method | result | size |
default | \(-\frac {\left (-1+\cos \left (f x +e \right )\right )^{2} \left (\cos \left (f x +e \right ) \EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {a \cos \left (f x +e \right )+b}{\left (\cos \left (f x +e \right )+1\right ) \left (a +b \right )}}\, \sin \left (f x +e \right ) b +\sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {a \cos \left (f x +e \right )+b}{\left (\cos \left (f x +e \right )+1\right ) \left (a +b \right )}}\, \EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) b \sin \left (f x +e \right )+\left (\cos ^{2}\left (f x +e \right )\right ) a +\cos \left (f x +e \right ) b \right ) \left (\cos \left (f x +e \right )+1\right )^{2} \sqrt {\frac {a \cos \left (f x +e \right )+b}{\cos \left (f x +e \right )}}}{f \left (a \cos \left (f x +e \right )+b \right ) \sin \left (f x +e \right )^{5}}\) | \(264\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a + b \sec {\left (e + f x \right )}} \csc ^{2}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}}{{\sin \left (e+f\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________